#ifndef SHAREDMEMORY_H_
#define SHAREDMEMORY_H_

#include <sys/types.h>
#include <unistd.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "Task.h"


#define MEM_FILE "mem"
#define BLOC_LENGHT 1024
#define MEM_SIZE 20 /*20 BLOC of BLOC_LENGHT size*/

void allocMemory();

void freeBloc(unsigned int bloc_num);

void setBloc(unsigned bloc_num, void* datas);

char* getBloc(unsigned int bloc_num);

void freeMemory();

int getNewBloc();

#endif /*SHAREDMEMORY_H_*/
